require "watir"
# include Watir
require 'test/unit'
require "watir-webdriver"
require "rubygems" # optional
require 'spec'

# set a variable
test_site = "http://www.shermanstravel.com/luxury"

# open the firefox browser
Watir::Browser.default = 'firefox'
# brw = Watir::Browser.new
brw = Watir::Browser.new

# goto the website
brw.goto test_site

# set the input of luxury signup
# use id attribute
brw.text_field(:id, "txtNewsletterSignupEmail").set("abc")
brw.text_field(:id, "txtNewsletterSignupEmail").clear

# set the input of luxury signup
# use name attribute
# brw.text_field(:name: "email").set("abc")
#brw.text_field(:name: "email").clear